/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

/**
 *
 * @author Jeppe
 */
public class DriverCertificate {
    private Driver aDriver;
    private Certificate aCertificate;

    public DriverCertificate(Driver aDriver, Certificate aCertificate) {
        this.aDriver = aDriver;
        this.aCertificate = aCertificate;
    }

    public Driver getDriver() {
        return aDriver;
    }

    public Certificate getCertificate() {
        return aCertificate;
    }
    
    @Override
    public String toString(){
        return aDriver + " " + aCertificate;
    }
    
    public String toStringSql(){
        String sql;
        sql = "(driverPhoneNo, certificateID) "
                + "values(" +aDriver.getPhoneNo()+ ", " +aCertificate.getID()+ ")";
        return sql;
    }
    
}
